package com.vegetable.modules.entity.stock.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.vegetable.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 库存表
 * </p>
 *
 * @author wangruijie
 * @since 2024-03-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Stock成本变化对象", description="Stock成本变化对象")
public class StockCostChangeQueryPO extends BaseEntity {

    @ApiModelProperty(value = "商品ID")
    private Long commodityId;
    @ApiModelProperty(value = "库存idID")
    private Long stockId;

    @ApiModelProperty(value = "商品名称")
    private String commodityNameLike;

    @ApiModelProperty(value = "商品编码")
    private String commonCode;

    @ApiModelProperty(value = "修改时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date orderTime;

    @ApiModelProperty(value = "规格ID")
    private Long specsId;

    @ApiModelProperty(value = "规格名称")
    private String specsName;

    @ApiModelProperty(value = "商品标签(0原料，1半成品，2成品，3材料)")
    private Integer tag;

    @ApiModelProperty(value = "标准")
    private BigDecimal standard;

    @ApiModelProperty(value = "入库类型：0 代办交货 1 物流园 2 散货采购")
    private Integer storageType;

    @ApiModelProperty(value = "单据编号")
    private String storageOrderNo;

    @ApiModelProperty(value = "仓库id")
    private Long warehouseId;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "库存批次编码")
    private String stockBatchNo;

    @ApiModelProperty(value = "商品来源")
    private String agentName;


    @ApiModelProperty(value = "当前页码")
    private Integer page = 1;


    @ApiModelProperty(value = "每页显示记录数")
    private Integer LIMIT = 10;

}
